﻿
using RoboTrocity.Code.ObjectStates.ItemStates;

namespace RoboTrocity.Code.Items {
	static class ItemFactory {

		public static Scrap GetBlankScrap(Point _position) {
			Scrap retScrap = new Scrap(_position, "scrap");
			retScrap.addState(new ScrapFreeState(retScrap));
			retScrap.addState(new ScrapCollectedState(retScrap));
			retScrap.CurrentState = retScrap.getState(typeof (ScrapFreeState));
			return retScrap;
		}

		public static Scrap GetOneScrap(Point _position) {
			Scrap retScrap = ItemFactory.GetBlankScrap(_position);
			retScrap.Amount = 1;
			retScrap.Height = 20;
			retScrap.Width = 20;
			return retScrap;
		}
	}
}
